[dialog] {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .3);
  animation: dialog .3s;
  z-index: 100000;
  display: flex;
  flex-direction: column;  
}
[dialog] > .wrapper {
  width: 500px;
  height: 300px;
  background: #fff;
  margin: auto;
  box-shadow: 0px 10px 30px #555;
  display: flex;
  flex-direction: column;
  animation: big .3s;
}
[dialog] > .wrapper > .title {
  background: #e0e0e0;
  font-size: 22px;
  height: 72px;
  line-height: 72px;
  text-indent: 1em
}
[dialog] > .wrapper > .message {
  font-size: 14px;
  box-sizing: border-box;
  padding: 18px;
  flex: 1;
  border-bottom: 1px solid #ccc;
}
[dialog] > .wrapper > button {
  margin: 8px;
  font-size: 14px;
  flex: none;
  align-self: flex-end;
}
@keyframes dialog {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
@keyframes big {
  0% {transform: scale(.3);opacity: 0;}
  100% {transform: scale(1);opacity: 1;}
}
[removeDialog] {
  transition: all .3s;
  opacity: 0;
}
[removeDialog] > .wrapper {
  transition: all .3s;
  transform: scale(.4);
}
